<%@ page import="java.net.URLDecoder" %><%--
  Created by IntelliJ IDEA.
  User: oldliu
  Date: 2022-02-22
  Time: 17:16
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script>
        alert(document.cookie);
    </script>
</head>
<body>
  <h2>显示所有的cookie</h2>
<%
    Cookie cr[]=request.getCookies();
    for(int i=0;cr!=null&&i<cr.length;i++){
        out.print(cr[i].getName()+"="+ cr[i].getValue()  +"<br/>");
    }
%>
</body>
</html>
